package com.gosun.dtgw;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description: TODO
 * @author hjd
 * @date 2018年6月22日
 */
@SpringBootApplication
@RestController
public class DtgwApp {
	
	Logger log = LoggerFactory.getLogger(getClass());
	
    public static void main( String[] args ){
    	SpringApplication app = new SpringApplication(DtgwApp.class);
    	app.setBannerMode(Banner.Mode.OFF);//去掉启动时的logo
    	app.run(args);
    }
    
    
    @GetMapping("/test")
    public void testLog(){
    	log.error("测试日志中文输出乱码问题");
    }
}
